import request from '@/utils/request'

// 查询报告参数列表
export function listReportparam(query) {
  return request({
    url: '/report/reportparam/list',
    method: 'get',
    params: query
  })
}

// 查询报告参数详细
export function getReportparam(paramId) {
  return request({
    url: '/report/reportparam/' + paramId,
    method: 'get'
  })
}

// 新增报告参数
export function addReportparam(data) {
  return request({
    url: '/report/reportparam',
    method: 'post',
    data: data
  })
}

// 修改报告参数
export function updateReportparam(data) {
  return request({
    url: '/report/reportparam',
    method: 'put',
    data: data
  })
}

// 删除报告参数
export function delReportparam(paramId) {
  return request({
    url: '/report/reportparam/' + paramId,
    method: 'delete'
  })
}
